package cn.zyq.ykb.controller.h5.config;

import org.springframework.security.access.prepost.PreAuthorize;
import cn.zyq.ykb.system.ry.util.poi.ExcelUtil;
import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.system.annotation.Log;
import cn.zyq.ykb.system.ry.enums.BusinessType;
import cn.zyq.ykb.beans.config.ConfigPackage;
import cn.zyq.ykb.service.config.ConfigPackageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.system.common.PageParam;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 配置-下载安装包Controller
 *
 * @author SystemAuth
 * @date 2023-06-15
 */

@RestController(value = "H5ConfigPackageController")
@RequestMapping("/api/configPackage")
@Api(tags = "配置-下载安装包接口")
public class   ConfigPackageController extends BaseController {

    @Autowired
    private ConfigPackageService configPackageService;

    /**
     * 查询配置-下载安装包列表
     */
    @ApiOperation(value = "列表", response = ConfigPackage.class)
    @PostMapping("/list")
    public Object list() {
        return this.configPackageService.selectConfigPackageList();
    }

    /**
     * 查询配置-下载安装包列表
     */
    @ApiOperation(value = "返热更新包数据", response = ConfigPackage.class)
    @PostMapping("/getRgx")
    public Object getRgx() {
        return this.configPackageService.getRgx();
    }

}
